//
//  UILabelExtension.swift
//  LeGou
//
//  Created by lxm on 2022/7/28.
//

import Foundation

extension UILabel : ZMCompatible {}

extension ZM where Base : UILabel {
    // 划线
    func setStrikethroughTitle(title : String) {
        let subStr = NSMutableAttributedString(string: title)
        subStr.addAttribute(NSAttributedString.Key.strikethroughStyle, value: 1, range: NSRange(location: 0, length: subStr.length))
        base.attributedText = subStr
    }
}
